<?php if($user->isAuthenticated()){ ?>
<script>
    _panoramio_id = '<?php echo $user->panoramio_id; ?>';
    _flickr_id = '<?php echo $user->flickr_id; ?>';
</script>
<?php } ?>
